package com.ktg.mes.unit.other;

import com.baomidou.mybatisplus.extension.service.IService;
import com.ktg.common.core.domain.model.SqlResult;

import java.io.Serializable;
import java.util.List;

//@Slf4j
public interface ZLService<T>  extends IService<T>{

    static Long recordId = System.currentTimeMillis() * 100000L;
    T findOld(T model);

    List<T> getFromIds(Serializable[] ids);

    SqlResult insertSQLModel(T model);

    SqlResult updateSQLModel(T model);

    SqlResult deleteSQLIds(Serializable[] ids);

    SqlResult deleteSQLId(Serializable id);
    SqlResult deleteSQLModel(T model);

    SqlResult deleteSQLModelList(List<T> modelList);


}
